package com.rui.patterns.observer;

/**
 * @author : [锐神NO.3]
 * @version : [v1.0]
 * @className : WeiXinUser
 * @createTime : [2022/2/24 15:42]
 * @description : [观察者角色类]
 */

public class WeiXinUser implements Observer {

    private String name;

    public WeiXinUser(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name + "收到消息：" + message);
    }
}
